package com.maxjay.component.simplelist.service.impl;

import org.springframework.stereotype.Service;

@Service("paginationServiceJdbcMysql")
public class PaginationServiceJdbcMysql extends PaginationServiceJdbc {
	
	protected String generatePaginationSql(String sql, int startRow, int endRow) {
		if (startRow < 0 || endRow < 0) {
			return sql;
		}
		String paginationSql = sql + " limit " + startRow + ","
				+ (endRow - startRow);
		return paginationSql;
	}

}
